/* led.h */
#ifndef __LED__H__
#define __LED__H__

#include<stm32f10x.h>

void led_init(void);
void delay200ms(void);
void delay500ms(void);
void delay1s(void);

#define LED_ALL_ON 		(GPIOA->ODR &= ~(0x3F))
#define LED_ALL_OFF		(GPIOA->ODR |= 	(0x3F))

#define LEDX_ON(x)		(GPIOA->ODR &= ~(0x01 << x))
#define LEDX_OFF(x)		(GPIOA->ODR |=  (0x01 << x))

#endif //__LED__H__
